//
//  NSString+StringToPinyin.m
//  UILesson10-UITableViewController
//
//  Created by 陈凯 on 15/10/4.
//  Copyright (c) 2015年 CK_. All rights reserved.
//

#import "NSString+StringToPinyin.h"

@implementation NSString (StringToPinyin)
- (NSString *)pinyinString:(NSString*)sourceString {
    NSMutableString *source = [sourceString mutableCopy];
    CFStringTransform((__bridge CFMutableStringRef)source, NULL, kCFStringTransformMandarinLatin, NO);
    CFStringTransform((__bridge CFMutableStringRef)source, NULL, kCFStringTransformStripDiacritics, NO);
    return source;
}
@end
